<h3 id="comments" class="comments_title">Thảo luận</h3>
<div class="ccomment" id="comment-wraper">
	<?php if (isset($comments)):?>
	<?php foreach ($comments as $comment) :?>
	<?php echo $this->render('_commentReply', array(
			'isReply' 	=> false,
			'name' 		=> Util::getUserComment($comment),
			'date' 		=> Util::formatTime($comment->create_at, true, '-'),
			'content' 	=> $comment->content,
			'commentId'	=> $comment->id,
		));
	?>
	<?php $replies = $comment->reply;?>
	<?php if (isset($replies)) :?>
		<?php foreach ($replies as $reply) :?>
			<?php echo $this->render('_commentReply', array(
					'isReply' 	=> true,
					'name' 		=> Util::getUserComment($reply),
					'date' 		=> Util::formatTime($reply->create_at, true, '-'),
					'content' 	=> $reply->content
				));
			?>
		<?php endforeach;?>
	<?php endif;?>
	<div class='post-reply-comment replycomment' id="comment-reply-<?php echo $comment->id?>"></div>
	<?php endforeach;?>
	<?php endif;?>
</div>
<hr class="hrpadding">
<div id="comment-post">
	<?php echo $this->render('_commentForm', array('isReply' => false));?>
</div>


